{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "!pip install -r requirements.txt"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "outputs": [],
   "source": [
    "#SDK模型下载\n",
    "from modelscope import snapshot_download\n",
    "model_dir = snapshot_download('mindnlp/flan-t5-xl')"
   ],
   "metadata": {
    "collapsed": false
   }
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "outputs": [],
   "source": [
    "!python test.py     --model_name_or_path /mnt/workspace/.cache/modelscope/mindnlp/flan-t5-xl     --data_path /mnt/workspace/my_project/ds/ACE_2005_NER    --bf16 True     --output_dir /mnt/workspace/save/ace05     --num_train_epochs 3     --per_device_train_batch_size 32     --gradient_accumulation_steps 8     --evaluation_strategy \"no\"     --save_strategy \"no\"     --learning_rate 5e-4     --weight_decay 0.01     --warmup_ratio 0.03     --lr_scheduler_type \"cosine\"     --logging_steps 50     --tf32 False"
   ],
   "metadata": {
    "collapsed": false
   }
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}
